﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Brain.IO
{
    public class DefaultIOManager : IEngineManager
    {
        public void DeserializedAll()
        {
        }
        public DirectoryInfo[] GetDirectoriesOnFolder(string folder)
        {
            DirectoryInfo dir = new DirectoryInfo(folder);
            if (dir.Exists)
            {
                return dir.GetDirectories();
            }
            else
            {
                throw new Exception("Specified Folder doesn't exhist");
            }
        }

        public void Reset()
        {
        }

        public SerializationData Data { get; set; }

        public void SerializeData(DefaultSerializationManager manager)
        {
        }

        public void DeserializeData(DefaultSerializationManager manager, SerializationData newData)
        {
        }
    }
}
